package com.zdsoft.crm.service.auth.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zdsoft.crm.dao.auth.ISysUserRoleMapper;
import com.zdsoft.crm.entity.auth.SysUserRole;
import com.zdsoft.crm.service.auth.ISysUserRoleService;

@Service
@Transactional
public class SysUserRoleServiceImpl implements ISysUserRoleService{

	@Autowired
	ISysUserRoleMapper dao;
	
	@Override
	public void save(SysUserRole userRole) {
		dao.delete(userRole);
		
		dao.save(userRole);
		
	}

}
